package com.wenchao.app;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.wenchao.app.databinding.ActivityMainBinding;

/**
 * @author zhangwenchao
 */
public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        binding.btnSerialPort.setOnClickListener(v -> {
            startActivity(new Intent(this, SerialPortActivity.class));
        });
    }

}